import Layout from '@/layout'

const distributorDistributionRouter = {
  path: '/distributor/distribution',
  component: Layout,
  redirect: 'noRedirect',
  alwaysShow: true,
  name: 'DistributorDistribution',
  meta: {
    title: '分销管理',
    roles: ['distributor', 'admin']
  },
  children: [
    {
      path: 'booking',
      component: () => import('@/views/distributor/distribution/booking'),
      name: 'DistributorBooking',
      meta: { title: '快速下单', noCache: false }
    },
    {
      path: '',
      // component: () => import('@/views/distributor/distribution/'),
      name: '',
      meta: { title: '物流异常统计(TBD)', noCache: false }
    },
    {
      path: 'groupon',
      component: () => import('@/views/distributor/distribution/groupon-list'),
      name: 'DistributorGroupon',
      meta: { title: '团购查询(TBD)', noCache: false }
    },
    {
      path: 'order',
      component: () => import('@/views/distributor/distribution/order-list'),
      name: 'DistributorOrder',
      meta: { title: '我的订单', noCache: false }
    },
    {
      path: 'trade',
      component: () => import('@/views/distributor/distribution/trade-list'),
      name: 'DistributorTrade',
      meta: { title: '交易信息(TBD)', noCache: false }
    },
    {
      path: 'discount',
      component: () => import('@/views/distributor/distribution/discount-list'),
      name: 'DistributorDiscount',
      meta: { title: '折扣查询', noCache: false }
    },
    {
      path: 'delivery-charge',
      component: () => import('@/views/distributor/distribution/delivery-charge-list'),
      name: 'DistributorDeliveryCharge',
      meta: { title: '邮费查询', noCache: false }
    },
    {
      path: 'goods-demand',
      component: () => import('@/views/distributor/distribution/goods-demand-list'),
      name: 'DistributorGoodsDemand',
      meta: { title: '找货需求(TBD)', noCache: false }
    },
    {
      path: 'my-favorite',
      component: () => import('@/views/distributor/distribution/my-favorite-list'),
      name: 'DistributorMyFavorite',
      meta: { title: '我的收藏(TBD)', noCache: false }
    }
  ]
}

export default distributorDistributionRouter
